package com.travel.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qianfeng.util.ResultMsg;
import com.travel.entity.TbCity;
import com.travel.mapper.CityMapper;
import com.travel.service.CityService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CityServiceImpl extends ServiceImpl<CityMapper, TbCity> implements CityService {
    @Override
    public ResultMsg getAll() {
        List<TbCity> cityList = super.list();
        return ResultMsg.success(cityList);
    }
}
